import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { BookEntity } from '../../study/book/entities/book.entity'
import { BookTagEntity } from '../../study/book/entities/book-tag.entity'
import { MovieEntity } from '../../study/movie/entities/movie.entity'
import { VideoTagEntity } from '../../study/movie/entities/video-tag.entity'
import { AppController } from './controllers/app.controller'
import { SettingAppIndexEntity } from './entities/app.entity'
import { AppService } from './services/app.service'

@Module({
  imports: [
    TypeOrmModule.forFeature([
      SettingAppIndexEntity,
      BookEntity,
      BookTagEntity,
      MovieEntity,
      VideoTagEntity,
    ]),
  ],
  controllers: [AppController],
  providers: [AppService],
  exports: [AppService],
})
export class AppSettingModule {}
